import request from '~/utils/request'

export function addingOrder(userId, goodsId) {
  return request({
    url: '/order/cart/add',
    method: 'post',
    data: {
      userId: userId + '',
      goodsId: JSON.stringify(goodsId)
    }
  })
}

export function getOrding(userId) {
  return request({
    url: `/order/cart/query?userId=${userId}`,
    method: 'post'
  })
}

export function deleteOrding(userId) {
  return request({
    url: `/order/cart/delete?userId=${userId}`,
    method: 'post'
  })
}

